package com.link2room.jetfire.feign.blaster;

import com.link2room.blaster.dto.innerUse.SMSAuthCodeParamDto;
import com.link2room.blaster.dto.result.SMSAuthCodeResDto;
import com.link2room.common.dto.result.base.BaseResultDto;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author sqj88
 * @date 2017/11/7 22:08
 */
@FeignClient("${spring.gateway.name}/${feign.blaster}")
public interface SmsVerifyCodeFeignService {

    /**
     * 发验证码
     * @param paramDto
     * @return
     * @throws Exception
     */
    @RequestMapping(method = RequestMethod.POST,value = "/in/SMSVerifyCodes/send",consumes = MediaType.APPLICATION_JSON_VALUE)
    BaseResultDto<SMSAuthCodeResDto> sendSMSAuthCode(@RequestBody SMSAuthCodeParamDto paramDto) throws Exception;
}
